<nz-spin [nzSpinning]="loadingData" style="width: 100%;margin: auto;" [nzTip]="'正在获取数据...'">
<nz-layout>
  <nz-content>
    <h1 style="text-align: center; margin-top: 120px; font-size: 30px;font-weight: bold;" *ngIf="listEntities.entities && listEntities.entities.length==0">
      {{!loadingData?'没有符合打分条件内容':''}}
    </h1>
    <div nz-row [nzGutter]="40">
      <div nz-col [nzSpan]="6" *ngFor="let data of listEntities.entities; let i = index">
        <nz-card [class]="'bg'+getIndex(i)">
          <p style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size: 21px;font-weight: bold;">{{ data.subjectName }}</p>
          <ul style="margin-top: 23px;">
            <li style="font-size: 14px;">
              学生姓名：{{data.personName}}
            </li>
            <li style="font-size: 14px;">
              提交时间：{{data.createTime}}
            </li>
            <li style="font-size: 14px;">
              演 练 分：{{data.drillScore}}
            </li>
            <li style="font-size: 14px;">
              报 告 分：{{data.reportScore}}
            </li>
          </ul>
          <div nz-row class="bottom">
            <span nz-col [nzSpan]="12">
              <a [attr.href]="http.IP_PORT+data.reportUrl" target="_blank">
                <i class="anticon anticon-eye-o"></i>
                查看报告
              </a>
            </span>
            <span nz-col [nzSpan]="12" (click)="show(data.id,data.reportScore,data.reportComment)">
              <i class="anticon anticon-edit"></i>
              {{ data.reportScore!=0? '修改':'打分'}}
            </span>
          </div>
        </nz-card>
      </div>
    </div>
    <nz-pagination style="margin-right:25px;float:right" (nzPageIndexChange)="getList()" [nzPageIndex]="listEntities.currentPageIndex"
      [nzPageSize]="listEntities.pageSize" [nzTotal]="listEntities.recordTotalCount"></nz-pagination>

    <nz-modal [(nzVisible)]="showScoreModule" nzTitle="编辑" (nzOnCancel)="showScoreModule=false" (nzOnOk)="setReportScore()">
      <nz-form-item>
        <nz-form-label [nzSpan]="6">报告成绩</nz-form-label>
        <nz-form-control [nzSpan]="14">
          <input placeholder="请填写报告成绩" type="number" style="width: 260px" nz-input [(ngModel)]="score" />
          <span style="color: red">*</span>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
          <nz-form-label [nzSpan]="6">评语</nz-form-label>
          <nz-form-control [nzSpan]="14">
            <textarea placeholder="请填写报告成绩" type="number" style="width: 260px" rows="10" nz-input [(ngModel)]="teacherComment"></textarea>
            <span style="color: red">*</span>
          </nz-form-control>
        </nz-form-item>
    </nz-modal>
  </nz-content>
</nz-layout>
</nz-spin>